<%@page import="study.top.mydb.items.WishListShowItem"%>
<%@page import="java.util.ArrayList"%>
<%@page import="study.top.mydb.WishListProduct"%>
<%@page import="study.top.common.PatternChecker"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true"%>
<%@ include file="dbcon.jsp"%>
<%

	//모든 파라미터 받기
	int seq = web.getInt("seq");
	int wseq = web.getInt("wseq");
	int pseq = web.getInt("pseq");
	int rank = web.getInt("rank");
	int qty = web.getInt("qty");
	int paysum = 0;

	/** 데이터 저장 */
	WishListProduct w = new WishListProduct();
	boolean result = w.edit(seq, wseq, pseq, rank, qty);
	
	if (!result) {
		out.print("<script type='text/javascript'>alert('수정에 실패하였습니다.'); history.back(); </script>");
		return;
	}
	/** 접속 해제 */
	DBHandler.getInstance().disconnect();

	web.goPage("uWishList.jsp?", null);
%>
